package com.example.smart_light;

import java.io.DataInputStream;
import java.io.IOException;
import java.net.Socket;

public class Client {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("192.168.90.9",9999);
        DataInputStream dataInputStream = new DataInputStream(socket.getInputStream());
        while(true){
            String cmd = dataInputStream.readUTF();
            System.out.println("接受到命令:"+cmd);
        }
    }
}
